package com.xyy.saas.payment.api.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.xyy.saas.payment.manage.cores.api.BillApi;
import com.xyy.saas.payment.service.JDPayService;
import com.xyy.saas.payment.trace.AlarmService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;
@Service(version = "1.0.0")
@Slf4j
public class BillApiImpl implements BillApi {
    @Autowired
    private JDPayService jdPayService;
    @Autowired
    private AlarmService alarmService;

    @Override
    public void checkBill(List<String> billDates) {
        for (String billDate : billDates) {
            String msg = jdPayService.checkBill(billDate);
            log.info("手动checkBill{}",msg);
        }

    }
}
